#ifndef NETWORKFACTORY_H
#define NETWORKFACTORY_H

#include <assert.h>
#include <protocol\ClientLogin.h>
#include <protocol\command.h>

#include "cclientlogin.h"


class INetWorking;

class CNetworkFactory
{
public:
    static INetWorking* getNetworkClass(int command)
    {
        switch (command)
        {
        case protocal::CLI_LOGIN:
            return (new CClientLogin);

        default:
            assert(0);
        }
    }
};

#endif // NETWORKFACTORY_H
